<template>
  <view style="padding: 30rpx;">
    <navigator url="/pages/tabBar/api/Logpages/Logpages">
      <button>打印日志</button>
    </navigator>
    <navigator url="/pages/tabBar/api/TimerPage/TimerPage">
      <button>计时器</button>
    </navigator>
    <navigator url="/pages/tabBar/api/Storagepage/Storagepage">
      <button>数据缓存</button>
    </navigator>
  </view>
</template>

<script>
export default {
  data() {
    return {
      
    }
  },
  onLoad() {

    uni.preloadPage({
      url: "/pages/tabBar/api/Storagepage/Storagepage"
    })
  }, 
  methods: {
    goStorage() {
      uni.navigateTo({
        url: "/pages/tabBar/api/Storagepage/Storagepage",
        success() {
          console.log("navigateTo--->success");
        },
        fail(e) {
          console.log("navigateTo--->fail:" + JSON.stringify(e));
        },
        complete() {
          console.log("navigateTo--->complete");
        }
      })
    }
  }
}
</script>

<style>
button{
  margin: 20rpx;
  padding: 15rpx 30rpx;
  background-color: #f0f0f0;
  border-radius: 8rpx;
}
</style>